<%--
  Created by IntelliJ IDEA.
  User: BM
  Date: 2024/7/21
  Time: 14:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <style>
        .title{
            text-align: center;
            color: #292a29;
        }
        .content{
            width: 60%;
            margin: 20px auto;
            box-shadow: 0 0 15px #d7d7d5;
            padding: 30px;
            border-radius: 8px;
        }
        .submitCont{
            text-align: center;
        }
        .submit{
            width: 180px;
        }
    </style>
</head>
<body>
<div class="content">
    <h3 class="title">${title}</h3>
    <form action="${pageContext.request.contextPath}/book/submit/form" method="post">
        <input name="id" type="hidden" value="${book.id}">
        <div class="mb-3">
            <label for="name" class="form-label">书名</label>
            <input type="text" required name="name" class="form-control" id="name" placeholder="请输入书名" value="${book.name}">
        </div>
        <div class="mb-3">
            <label for="type" class="form-label">类型</label>
            <input type="text" required name="type" class="form-control" id="type" placeholder="请输入类型" value="${book.type}">
        </div>
        <div class="mb-3">
            <label for="auther" class="form-label">作者</label>
            <input type="text" required name="auther" class="form-control" id="auther" placeholder="请输入作者" value="${book.auther}">
        </div>
        <div class="mb-3">
            <label for="publisher" class="form-label">出版社</label>
            <input type="text" required name="publisher" class="form-control" id="publisher" placeholder="请输入出版社" value="${book.publisher}">
        </div>
        <div class="mb-3">
            <label for="describe" class="form-label">描述</label>
            <textarea class="form-control" name="describe" placeholder="请对书籍进行描述" id="describe" rows="5">${book.describe}</textarea>
        </div>
        <div class="submitCont"><button type="submit" class="btn btn-primary submit">提交</button></div>
    </form>
</div>
</body>
</html>
